package spring;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by houjinxin on 2016/11/7.
 */
public class RootObject {

    public List<Inventor> inventors;

    public RootObject() {
        this.inventors = new ArrayList<Inventor>() {{
            add(new Inventor(){{
                setName("houjinxin1");
            }});
            add(new Inventor(){{
                setName("houjinxin2");
            }});
            add(new Inventor(){{
                setName("houjinxin3");
            }});
            add(new Inventor(){{
                setName("houjinxin4");
            }});
        }};
    }

    public List<Inventor> getInventors() {
        return inventors;
    }

    public void setInventors(List<Inventor> inventors) {
        this.inventors = inventors;
    }
}
